package Modele;

import java.util.Comparator;

public class DateComparator implements Comparator{
	DateComparator()
	  {
	  }
	 
	  public int compare(Object arg0, Object arg1) 
	  {
	    Contact p1 = (Contact) arg0;
	    Contact p2 = (Contact) arg1;
	    
	    int result = p1.getAjoutDate().compareTo(p2.getAjoutDate());

	  	return result;
	  }
}
